package com.example.mqdemo.rabbitmq.workquee.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WorkConfig {

    //初始化队列 一个生产者对应多个消费者
    @Bean
    Queue queueWork() {
        return new Queue("work");
    }
}
